'use strict';
/**
 * 个人中心
 */
app.service('PersonalService',
['$http',
function ($http) {
        var that = this;
        this.initUpdate = function(id){
    		return $http.post(
    				ISS.getPath('/user/get/'+ id)
    			).then(function(resp){
    				return resp.data;
    			});
    	}
        this.updateCurrUser = function(data){
            return $http.post(
            		ISS.getPath('/user/update'),
                data,
                {contentType:'json'}
            ).then(function(resp){
                return resp.data;
            });
        };
        this.updatePassword = function(data){
        	return $http.post(
    				ISS.getPath('/user/updataPwd'),
    					data,
    					{contentType: 'json'}
    				).then(function(resp){
    					return resp.data;
    				});
        };

    }
]);